[Chapter 3] 3.9 The User Database
Author: Bryan Costales & Eric Allman
Date: 1999-02-04T00:04:33Z

#

| Chapter 3 Databases |

## 3.9 The User Database

Locates mail drops when mail is received, and maps user names to their external form when mail is sent. The format of the database file (e.g., /etc/userdb) is:

>     user:maildrop     user@host
>     user:mailname     alias@external.domain

As a shorthand, if all users in a database should have their domain name changed when mail is sent, use:

>     :default:mailname       external.domain
>     user1:maildrop           user1@host
>     user2:maildrop           user2@host

You build the database using the makemap(1) program:

>     % makemap btree /etc/userdb < /etc/userdb

Berkeley database (btree class) support is required.

3.8 Databases in Rules |  | 3.10 Hints